package com.ruoyi.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistics.mapper.StatisticsSupportMapper;
import com.ruoyi.statistics.domain.StatisticsSupport;
import com.ruoyi.statistics.service.IStatisticsSupportService;
import com.ruoyi.common.core.text.Convert;

/**
 * 技术支持 服务层实现
 * 
 * @author ruoyi
 * @date 2019-11-11
 */
@Service
public class StatisticsSupportServiceImpl implements IStatisticsSupportService 
{
	@Autowired
	private StatisticsSupportMapper statisticsSupportMapper;

	/**
     * 查询技术支持信息
     * 
     * @param id 技术支持ID
     * @return 技术支持信息
     */
    @Override
	public StatisticsSupport selectStatisticsSupportById(Long id)
	{
	    return statisticsSupportMapper.selectStatisticsSupportById(id);
	}
	
	/**
     * 查询技术支持列表
     * 
     * @param statisticsSupport 技术支持信息
     * @return 技术支持集合
     */
	@Override
	public List<StatisticsSupport> selectStatisticsSupportList(StatisticsSupport statisticsSupport)
	{
	    return statisticsSupportMapper.selectStatisticsSupportList(statisticsSupport);
	}
	
    /**
     * 新增技术支持
     * 
     * @param statisticsSupport 技术支持信息
     * @return 结果
     */
	@Override
	public int insertStatisticsSupport(StatisticsSupport statisticsSupport)
	{
	    return statisticsSupportMapper.insertStatisticsSupport(statisticsSupport);
	}
	
	/**
     * 修改技术支持
     * 
     * @param statisticsSupport 技术支持信息
     * @return 结果
     */
	@Override
	public int updateStatisticsSupport(StatisticsSupport statisticsSupport)
	{
	    return statisticsSupportMapper.updateStatisticsSupport(statisticsSupport);
	}

	/**
     * 删除技术支持对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteStatisticsSupportByIds(String ids)
	{
		return statisticsSupportMapper.deleteStatisticsSupportByIds(Convert.toStrArray(ids));
	}
	
}
